package com.feng.profile.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author Lee
 */
public class UserInfo implements Serializable {

    private String userId;

    private String userName;

    private String email;

    private String mobile;

    private Date createTime;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserInfo userInfo = (UserInfo) o;
        return userId.equals(userInfo.userId) &&
                userName.equals(userInfo.userName) &&
                email.equals(userInfo.email) &&
                mobile.equals(userInfo.mobile) &&
                createTime.equals(userInfo.createTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, email, mobile, createTime);
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
